package com.itfreer.gather.dictionary;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Component;

import com.itfreer.form.dictionary.LocalDictionaryBase;
import com.itfreer.form.dictionary.base.DictionaryItem;

/**
 * 定义GIS任务类型
 */
@Component
public class TaskTypeDictionary extends LocalDictionaryBase {

	@Override
	public String getDictionaryName() {
		return "g_task_type";
	}
	
	@Override
	protected List<DictionaryItem> getDictionarys() {
		List<DictionaryItem> list = new ArrayList<DictionaryItem>();
		
		DictionaryItem item = new DictionaryItem();
		item.setId("01");
		item.setCode("01");
		item.setDisplay("资源监测");
		item.setOrder(1);
		list.add(item);
		
		item = new DictionaryItem();
		item.setId("02");
		item.setCode("02");
		item.setDisplay("巡护");
		item.setOrder(3);
		list.add(item);
		
		item = new DictionaryItem();
		item.setId("03");
		item.setCode("03");
		item.setDisplay("其它");
		item.setOrder(4);
		list.add(item);
		return list;
	}
}
